package org.nimi317.web_gis.form.post;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @author thunderobot
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterPost {

    @NotBlank
    @Email
    private String email;

    @NotBlank
    @Length(max = 15, message = "用户名长度不能超过15")
    private String userName;

    @NotBlank
    @Length(min = 5, max = 5)
    private String code;
}
